package com.atguigu.guli.edu.service.impl;

import com.atguigu.common_utils.utils.PageUtils;
import com.atguigu.common_utils.utils.Query;
import com.atguigu.guli.edu.entity.Course;
import com.atguigu.guli.edu.entity.CourseCollect;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.atguigu.guli.edu.dao.EduCourseCollectDao;
import com.atguigu.guli.edu.service.EduCourseCollectService;


@Service("eduCourseCollectService")
public class EduCourseCollectServiceImpl extends ServiceImpl<EduCourseCollectDao, CourseCollect> implements EduCourseCollectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CourseCollect> page = this.page(
                new Query<CourseCollect>().getPage(params),
                new QueryWrapper<CourseCollect>()
        );

        return new PageUtils(page);
    }


}